home *** CD-ROM | disk | FTP | other *** search
/ HamCall (October 1991) / HamCall (Whitehall Publishing)(1991).bin / telcom / gtpower / ramdisk.bat < prev    next >
DOS Batch File  |  1989-06-27  |  2KB  |  56 lines

  1. echo off
  2. echo .
  3. echo .   Use this .BAT file to run GT from a RAM disk.
  4. echo .
  5. if "%1" == "" goto warn
  6. if "%2" == "" goto warn
  7. echo .   Once GT has been started, the program disk can be removed,
  8. echo .   but it will be needed when you exit GT.
  9. echo .
  10. echo .   NOTE: You may need to change the "Phone Directory PATH" in the
  11. echo .         GT configuration file.  Use the ALT-I command, then set
  12. echo .         it to point to the RAM disk.
  13. echo .
  14. pause
  15. echo .
  16. echo .   Loading files to the RAM disk.
  17. echo .
  18. %2
  19. echo on
  20. copy %1*.dir
  21. copy %1gt.cnf
  22. copy %1gt.key
  23. copy %1gt.log
  24. echo off
  25. %1gt1500 %3 %4 %5 %6 %7 %8 %9
  26. %1
  27. echo .
  28. echo .   Saving the configuration and directory files.
  29. echo .
  30. echo on
  31. copy %2*.dir
  32. copy %2gt.cnf
  33. copy %2gt.key
  34. copy %2gt.log
  35. goto fin
  36. :warn
  37. echo .
  38. echo .   ERROR: You must specify the drives to use!
  39. echo .
  40. echo .          Example:  "ramdisk  d: e: s /d".
  41. echo .
  42. echo .            Where:  d: ..... is the program disk and
  43. echo .                    e: ..... is the RAM disk, and
  44. echo .                    s  ..... is optional, the name of a
  45. echo .                               script to execute, when GT is
  46. echo .                               started.
  47. echo .                    /d ..... is optional, the DTR switch, if present
  48. echo .                               GT will NOT drop DTR upon exit to DOS.
  49. echo .
  50. echo .             Also:  The user should manually set the
  51. echo .                    desired directories on each drive
  52. echo .                    before executing this .BAT file.
  53. echo .
  54. echo on
  55. :fin
  56.